<template>
	<view class="showArticle">
		<u-parse :html="content"></u-parse>
	</view>
</template>

<script>
import { tArticleInformationGetModel } from '../../http/api'
export default {
	data() {
		return {
			content: '',
		}
	},
	onLoad(op) {
		let id = op.id
		tArticleInformationGetModel({ id }).then(({ head, data }) => {
			// console.log(res)
			if (head.code == 200) {
				uni.setNavigationBarTitle({
					title: data.title,
				})
				this.content = data.articleJson
			}
		})
	},
}
</script>

<style lang="scss">
</style>